import React, { Component } from 'react'
import Hello from './components/Hello'
import Tab from './components/Tab'

export default class LayOut extends Component {
  control = () => {
    // console.log(this)
    // this.refs.hello.changeFlag()
    this.hello.changeFlag()
  }
  render () {
    return (
      <div>
        {/* <Hello ref="hello"></Hello> */}
        <Hello ref={el => this.hello = el}></Hello>
        <Tab control={this.control}></Tab>
      </div>
    )
  }
}
